package utils

import (
	"hft/tools"

	"gorm.io/gorm"
)

type ParseAccount struct{}

func (p *ParseAccount) Parse(claims tools.BaseClaims, db *gorm.DB) func(db *gorm.DB) *gorm.DB {
	return func(db *gorm.DB) *gorm.DB {
		return db.Where("username = ?", claims.Username)
	}
}
